<template>
    <div class="app-container">
        <h1>危险操作</h1>
        <el-button type="danger" @click="d1">删除网关</el-button>
        <el-button type="danger" @click="d2">删除控制点</el-button>
        <el-button type="danger" @click="d3">删除信息点</el-button>
        <el-button type="danger" @click="d4">删除旧场景，添加新场景</el-button>
        <el-button type="primary" @click="f1">更新流量卡信息</el-button>
    </div>
</template>

<script>
import {
    agricultureDeleteCacheGateway,
    agricultureDeleteCacheLoop,
    agricultureDeleteCacheSensor,
    agricultureDeleteCacheScene
} from '@/api/test'

export default {
    name: "index",
    data() {
        return {}
    },
    methods: {

        d1() {
            agricultureDeleteCacheGateway().then(response => {
                this.$message.success('删除成功')
            })
        },

        d2() {
            agricultureDeleteCacheLoop().then(response => {
                this.$message.success('删除成功')
            })
        },

        d3() {
            agricultureDeleteCacheSensor().then(response => {
                this.$message.success('删除成功')
            })
        },

        d4() {
            agricultureDeleteCacheScene().then(response => {
                this.$message.success('删除成功')
            })
        },

        f1() {

        }

    }
}
</script>

<style scoped>

</style>
